<?php
/**
 * ============================================================================
 * @copyright China International Consulting. 中国国际咨询
 * @version:  v1.0
 * @website   http://www.chinacons.com
 * ---------------------------------------------
 * $Date: 2007.12.17
*/

  include("./config.php");

  $cPath = (int)$_GET["cPath"];     //父类,没有则为顶级分类
  $cID = (int)$_GET["cID"];         //分类ID
  $mode = empty( $_GET["mode"]) ? "work_cate" : $_GET["mode"];
  
  $tpl = new PhplibTpl( $conf["admin_tpl_path"]); 

  include($conf["include_path"] . "expand_cate.php");  //左边列表  

  if( file_exists( $conf["include_path"] . $mode . ".php"))
  {
	  include($conf["include_path"] . $mode . ".php");  //右边块,默认为显示
  }

  $tpl->set_file(array("main" => "news_cate.htm"));

  $tpl->set_var(array(
                   "SHOW_CATE" => $left_page,
				   "WORK_CATE" => $right_page
                  ));

  $tpl->parse("Output", "main");
  $tpl->p("Output");
?>